<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/include/page.jsp"%>
<!DOCTYPE html>
<html lang="en">
	<head>
		<title>注册 - 西餐厅管理系统</title>
		<%@ include file="/common/include/head_title.jsp"%>
	</head>
	<body>
		<jsp:include page="/header.htm"></jsp:include>
		<section class="blog-section spad">
	        <div class="container">
				<div class="col-md-10 offset-2">
					<form id="form" method="post" class="form-horizontal" action="${rootPath }/registerSubmit.htm" method="post">
						<h2
							class="col-sm-10 col-sm-offset-1 form-signin-heading text-center">注册信息</h2>
						<div class="form-group">
							<label for="email" class="col-sm-3 control-label">邮箱</label>
							<div class="col-sm-8">
								<input type="text" id="email" name="email" class="form-control"
									value="${requestScope.users.email }" placeholder="邮箱">
							</div>
						</div>
						<div class="form-group">
							<label for="inputPassword" class="col-sm-3 control-label">密码</label>
							<div class="col-sm-8">
								<input type="password" name="password" id="inputPassword"
									class="form-control" placeholder="密码" />
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label" for="confirmPass">密码</label>
							<div class="col-sm-8">
								<input type="password" id="confirmPass" name="confirmPass" placeholder="密码"  class="form-control">
							</div>
						</div>
						<div class="form-group">
							<label for="email" class="col-sm-3 control-label">验证码</label>
							<div class="col-sm-8">
								<div class="input-group">
									<span class="input-group-addon">
										<a title="看不清，换一张" onclick="return refreshCode('imgCode')" href="#">
											<img id="imgCode" width="100" height="38" src="${rootPath }/common/randImg.htm" title="看不清，换一张" alt="看不清，换一张">
										</a>
									</span>
									<input type="text" name="code" placeholder="验证码"  class="form-control" size="4" maxlength="4" value="0715">
								</div>
							</div>
						</div>
						<div class="form-group">
							<div class="col-sm-8 col-sm-offset-2">
								<button class="btn btn-md btn-primary" type="submit">注册</button>
								<a href="${rootPath }/headLogin.htm?system=login" class="btn btn-md btn-primary ml-3">登陆</a>
							</div>
						</div>
						<div class="control-group">
							${response.info }									
						</div>
					</form>
				</div>
			</div>
	    </section>
		<%@ include file="/common/include/head_footer.jsp"%>
	</body>
</html>